import request from '@/utils/request'

// 查询公寓图片管理列表
export function listAptimgview(query) {
  return request({
    url: '/aptimgview/aptimgview/list',
    method: 'get',
    params: query
  })
}

// 查询公寓图片管理详细
export function getAptimgviewByImageApartmentId(imageApartmentId) {
  return request({
    url: '/aptimgview/aptimgview/imageApartmentId/' + imageApartmentId,
    method: 'get'
  })
}

// 查询公寓图片管理详细
export function getAptimgviewByApartmentId(apartmentId) {
  return request({
    url: '/aptimgview/aptimgview/' + apartmentId,
    method: 'get'
  })
}

// 新增公寓图片管理
export function addAptimgview(data) {
  return request({
    url: '/aptimgview/aptimgview',
    method: 'post',
    data: data
  })
}

// 修改公寓图片管理
export function updateAptimgview(data) {
  return request({
    url: '/aptimgview/aptimgview',
    method: 'put',
    data: data
  })
}

// 删除公寓图片管理
export function delAptimgview(imageApartmentId) {
  return request({
    url: '/aptimgview/aptimgview/' + imageApartmentId,
    method: 'delete'
  })
}
